<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'standardId', width:100, unresize:true, align:'center'}">ID</th>
        <th lay-data="{field:'title', unresize:true, align:'left'}">标题</th>
        <th lay-data="{field:'version', unresize:true, align:'center',width:150}">版本号</th>
        <th lay-data="{field:'category', width:210, unresize:true, align:'center'}">类别</th>
        <th lay-data="{field:'creater', width:150, unresize:true, align:'center'}">作者</th>
        <th lay-data="{field:'dept', width:260, unresize:true, align:'center'}">发布部门</th>
        <th lay-data="{field:'publishTime', width:220, unresize:true, align:'center', fixed:'right'}">发布时间</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td th:text="${item.standardId}" class="">standardId</td>
        <td class="layui-gray"><a th:text="${item.title}" style="color: -webkit-link;"></a></td>
        <td th:text="${item.version}" class="layui-gray">version</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.StandardCategoryEnum).of(item.category).name}" class="">category</td>
        <td th:text="${item.creater}" class="">creater</td>
        <td th:text="${item.deptOneName + '/' + item.deptTwoName}" class="">dept</td>
        <td th:text="${(item.publishTime==null?'':#dates.format(item.publishTime, 'yyyy/MM/dd HH:mm:ss'))}">publishTime</td>
    </tr>
    </tbody>
</table>
